<!--
 * @Descripttion: 
 * @Author: jiansheng
 * @Date: 2021-12-02 15:09:01
-->
<template>
  <div class="child1">
    <p>child1 组件 ---- {{ prop1 }}</p>
    <child-2 v-bind="$attrs" v-on="$listeners"></child-2>
  </div>
</template>
<script>
import child2 from './child2.vue'
export default {
  components: { child2 },
  inheritAttrs: true,
  props: ['prop1'],
  mounted() {
    console.log('child1 ---- $attrs', this.$attrs)
  },
}
</script>